package com.doraro.coal.moudle.user.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.doraro.coal.moudle.user.mapper.RoleMapper;
import com.doraro.coal.moudle.user.model.entity.Role;
import com.doraro.coal.moudle.user.service.IRoleService;
import org.springframework.stereotype.Service;

import java.util.Set;

/**
 * <p>
 * 角色 服务实现类
 * </p>
 *
 * @author doraro
 * @since 2019-09-28
 */
@Service
public class RoleServiceImpl extends ServiceImpl<RoleMapper, Role> implements IRoleService {

    @Override
    public Set<String> getPermsByUserId(Long userId) {

        return baseMapper.getPermsByUserId(userId);
    }
}
